package sjms.construction.composite;

/**
 * @ClassName:
 * @Description: 传统的递归
 * @Author fcb
 * @Date 2021/9/8 13:20
 */
public class RecursiveTest {

    private static int recursive(int a){
        if(a==1)
            return 1;

        return a * recursive(a-1);
    }

    public static void main(String[] args) {
        int result = recursive(4);
        System.out.println(result);
    }
}
